<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>首航节能-运营管理</title>
    <meta name="keywords" content="首航节能-运营管理">
    <meta name="description" content="首航节能-运营管理">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link href="static/favicon.ico" rel="stylesheet"/>
    <link href="static/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="static/css/font-awesome.css" rel="stylesheet"/>
    <link href="static/css/animate.css" rel="stylesheet"/>
    <link href="static/css/style.css" rel="stylesheet"/>
    <link href="static/galaxy/css/ry-ui.min.css?v=2.3.0" rel="stylesheet"/>
    <style type="text/css">
        .nav > li:hover .dropdown-menu {display: block;}
    </style>

    <link rel="shortcut icon" href="static/favicon.ico">
	<link href="static/css/bootstrap.min.css" rel="stylesheet"/>
	<link href="static/css/font-awesome.css" rel="stylesheet"/>
	<!-- bootstrap-table 表格插件样式 -->
	<link href="static/ajax/libs/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
	<link href="static/ajax/libs/bootstrap-treetable/bootstrap-treetable.css" rel="stylesheet"/>
	<link href="static/css/animate.css" rel="stylesheet"/>
	<link href="static/css/style.css" rel="stylesheet"/>
	<link href="static/css/checkbox.css" rel="stylesheet"/>
	<link href="static/ajax/libs/select/select2.css" rel="stylesheet"/>
    <link href="static/galaxy/css/ry-ui.min.css" rel="stylesheet"/>
    
    <script src="static/js/jquery.min.js"></script>
	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/echarts.common.min.js"></script>
	
	<!-- bootstrap-table 表格插件 -->
	<script src="static/ajax/libs/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
	<script src="static/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
	<script src="static/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
	<!-- jquery-validate 表单验证插件 -->
	<script src="static/ajax/libs/validate/jquery.validate.min.js"></script>
	<script src="static/ajax/libs/validate/messages_zh.min.js"></script>
	<script src="static/ajax/libs/validate/jquery.validate.extend.js"></script>
	<!-- jquery-validate 表单树插件 -->
	<script src="static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js"></script>
	<!-- jquery-export 表格导出插件 -->
	<script src="static/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
	<script src="static/ajax/libs/bootstrap-table/extensions/export/tableExport.js"></script>
	<!-- 遮罩层 -->
	<script src="static/ajax/libs/blockUI/jquery.blockUI.js"></script>
	<script src="static/ajax/libs/layer/layer.min.js"></script>
	<script src="static/ajax/libs/layui/layui.js"></script>
	<script src="static/galaxy/js/common.js?v=2.3.0"></script>
	<script src="static/galaxy/js/ry-ui.min.js?v=2.3.0"></script>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden" th:classappend="${@config.getKey('sys.index.skinName')}">
<div id="wrapper">

    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close">
            <i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                       LOGO
                    </div>
                </li>
                <li th:each="menu : ${menus}">
                        <a href="#" onclick="loadInner('main.html')">
                            <i class="fa fa-circle"></i>
                            <span class="nav-label" th:text="${menu.menuName}">首页</span>
                        </a>
                    </li>
                <li th:each="menu : ${menus}">
                    <a href="#" onclick="loadInner('view/convertibility/convertibility.html')">
                        <i class="fa fa-circle"></i>
                        <span class="nav-label" th:text="${menu.menuName}">兑换券订单</span>
                    </a>
                </li>
                <li >
                    <a href="#" onclick="loadInner('view/venue/details/margin/list.html')">
                        <i class="fa fa-circle" th:class="${menu.icon}"></i>
                        <span class="nav-label" th:text="${menu.menuName}">保证金管理</span>
                    </a>
                </li>
                <li>
                    <a href="#" onclick="loadInner('view/venue/details/settlement/list.html')">
                        <i class="fa fa-circle" th:class="${menu.icon}"></i>
                        <span class="nav-label" th:text="${menu.menuName}">结算管理</span>
                    </a>
                </li>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->

    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation"
                 style="margin-bottom: 0">
                <div class="navbar-header">

                    <a class="navbar-minimalize minimalize-styl-2 btn btn-default " href="#" title="收起菜单">
                        <i class="fa fa-bars"></i>
                    </a>
                </div>
                <ul class="nav navbar-top-links navbar-right welcome-message">
                   
                    <li><a ><i class="fa fa-user"></i>admin</a></li>
                    <li><a id="loginout" th:href="@{logout}"><i class="fa fa-sign-out"></i>退出</a></li>
                </ul>
            </nav>
        </div>
       
        <div class="row mainContent" id="content-main">
            <iframe class="galaxy_iframe" name="iframe0" width="100%" height="100%" data-id="/system/main"
                    th:src="@{/system/main}" frameborder="0" seamless></iframe>
        </div>
      
    </div>
 
<!-- 全局js -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="static/ajax/libs/blockUI/jquery.blockUI.js"></script>
<script src="http://tajs.qq.com/stats?sId=62048022"></script>
<script src="static/galaxy/js/ry-ui.min.js?v=2.3.0"></script>
<script src="static/galaxy/index.js"></script>
	<script type="text/javascript" src="static/js/lib/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="static/js/app/app.js"></script>
	<script type="text/javascript" src="static/js/lib/MD5.js"></script>
		<script type="text/javascript" src="static/js/cookies.js"></script>
	<script type="text/javascript" src="static/js/app/net.js"></script>
<script src="static/ajax/libs/fullscreen/jquery.fullscreen.js"></script>
    <script type="text/javascript">
      function loadInner(url) {
      	
        $(".galaxy_iframe").attr('src',url)
      }
      
    </script>

    <script type="text/javascript">
			var re = GetRequest();
	       var shop = re['shop'];
        $(function(){
        loadInner('main.html');
        	
            var ht = $(window).height();//获取浏览器窗口的整体高度；
        console.log(ht);

        var topHeader = $(".border-bottom").height();//获取头部高度，定义一个变量名为topHeader
        console.log(topHeader)
        // $(".sidebar").height(ht);

        // $("#rightFrame").height(ht);

        // $(".sidebar").height(ht-topHeader);//计算左边高度：窗口高度-头部高度

        $("#content-main").height(ht-topHeader-20);//计算右边高度：窗口高度-头部高度

        });
 $('#loginout').on('click',function(){
 	var info={};
 	
	doPost("system/logout",info,function(data){
		
		if(data.success){
			 Cookies.set("shopid","");
			location.href = 'login.html';
		}
	});
});
</script>
</body>
</html>
